#include<stdio.h>
int main()
{
    int arr[5],num,n;

    scanf("%d",&num);

    if(num/10000!=0){n = 5;printf("5");}
    else if(num/1000!=0){n = 4;printf("4");}
    else if(num/100!=0){n = 3;printf("3");}
    else if(num/10!=0){n = 2;printf("2");}
    else{n = 1;printf("1");}

    printf("\n%d  ",num);

    for(int i=0;i<n;i++)
    {
        arr[i] = num%10;
        num /= 10;
        printf("%d",arr[i]);
    }

    return 0;
}